package stc.skymobi.unit.cmds;

import bsh.CallStack;
import bsh.Interpreter;

public class newUnit extends UnitCmds {
    public static void invoke( 
    		final Interpreter env, 
    		final CallStack callstack, 
    		final String name, final String template, final String[] params ) throws Exception {
		getUnitAdmin().newUnit(name, template, params);
		env.eval("print( \"unit("+ name +") created.\")");
    }
}
